package com.alkaid.anime.mapper;

import com.alkaid.commons.entity.Anime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Kylin
 */
@Mapper
public interface AnimeMapper extends BaseMapper<Anime> {

    /**
     * Find all list.
     *
     * @param sql the sql
     * @return the list
     */
    Page<Anime> findAll(String sql);

    /**
     * 查询用户追番列表
     *
     * @param userId the user id
     * @return the list
     */
    List<Anime> findCollectList(Long userId);
}
